public class Child extends Parent{
    String name;
    public Child(){}
    public Child(String name){
        this.name = name;
    }
    @Override
    public void sayHello(){
        System.out.println("我是" + name);
    }

    public static void main(String[] args) {
        Child child = new Child("King");
        child.sayHello();
    }
}
